/**
 * <p>Title: HttpClientConfig.java</p>
 * <p>Description: </p> 
 * @author xuchang 
 * @date 2018年7月29日
 */
package com.bclz.config.httpclient;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**  
* Title: HttpClientConfig  
* Description:   http属性配置
* @author xuchang  
* @date 2018年7月29日  
*/

@ConfigurationProperties(prefix="spring.httpclient")
public class HttpClientProperties {
	
	 private  int connectTimeout=1000;
	 
	 private  int socketTimeout=10000;
	 
	 private  int connectionRequestTimeout=10000;
	 
	 private  int maxConnPerRoute=10;
	 
	 private  int maxConnTotal=50;
	 
	 private  String userAgent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)";

	public int getConnectTimeout() {
		return connectTimeout;
	}

	public void setConnectTimeout(int connectTimeout) {
		this.connectTimeout = connectTimeout;
	}

	public int getSocketTimeout() {
		return socketTimeout;
	}

	public void setSocketTimeout(int socketTimeout) {
		this.socketTimeout = socketTimeout;
	}

	public int getConnectionRequestTimeout() {
		return connectionRequestTimeout;
	}

	public void setConnectionRequestTimeout(int connectionRequestTimeout) {
		this.connectionRequestTimeout = connectionRequestTimeout;
	}

	public int getMaxConnPerRoute() {
		return maxConnPerRoute;
	}

	public void setMaxConnPerRoute(int maxConnPerRoute) {
		this.maxConnPerRoute = maxConnPerRoute;
	}

	public int getMaxConnTotal() {
		return maxConnTotal;
	}

	public void setMaxConnTotal(int maxConnTotal) {
		this.maxConnTotal = maxConnTotal;
	}

	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	 
	 
}
